package br.com.agregador.managedbean;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;

import br.com.agregador.servico.OfertaServico;

@ManagedBean(name="ofertaManagedBean")
@ViewScoped
public class OfertaManagedBean extends BaseBean{
	
	private static final long serialVersionUID = 1L;
	
	//Injeção do serviço do spring
	@ManagedProperty(name="ofertarServico",value="#{ofertaServico}")
	private OfertaServico ofertaServico;
	
	public OfertaManagedBean(){		
	}
	
	//se precisar
	@PostConstruct
	public void iniciar(){
		//Inicia depois de o objeto instanciar
	}

}
